package com.bootdo.goods.service;

import com.bootdo.goods.domain.TGoodsAllocationDO;
import com.bootdo.goods.domain.dto.GoodsAllocationDto;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 货位表
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-04-24 14:13:19
 */
public interface TGoodsAllocationService { 
	
	TGoodsAllocationDO get(Long allocationId);
	
	List<TGoodsAllocationDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(TGoodsAllocationDO tGoodsAllocation);
	
	int update(TGoodsAllocationDO tGoodsAllocation);
	
	int remove(Long allocationId); 
	
	int batchRemove(Long[] allocationIds);

	TGoodsAllocationDO getTargetAllocation(String trayCode);

	void updateOne(String str,Long id);
	
	TGoodsAllocationDO getAllocation(Long providerId);
	
	void updateGoodids(Long goodsId, int num ,Date date,Long eid);
	 
	void deleteOne(Long sid);

	GoodsAllocationDto getTargetAllocationGoods(String trayCode);


	TGoodsAllocationDO selectAll(Long goodsId, int goodsNumber, Long providerId);

	TGoodsAllocationDO selectOne(Long providerId);

	TGoodsAllocationDO getOne(String allocationNumber);

	TGoodsAllocationDO selectGoodsMsg(String allocationNumber, Long goodsId);


	/**
	 * 查询货位商品
	 * @param allocationId
	 * @return
	 */
	List<GoodsAllocationDto> getAllocationGoods(Long allocationId);
	List<GoodsAllocationDto> getAllocationAloneGoods(Long allocationId);

}
